/ BBS in a Box 7
/ BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / H-K / HyperStuff.cpt / CFlash.c ![]() | next > |
MacBinary | 1988-12-19 | 1.6 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Mon Dec 19 15:58:24 1988, modified Mon Dec 19 15:58:24 1988, creator Think C, type ASCII, 1048 bytes "CFlash.c" , at 0x498 348 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 43 46 6c 61 73 68 | 2e 63 00 00 00 00 00 00 |..CFlash|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 18 00 | 00 01 5c 9f d3 1d f0 9f |........|..\.....|
|00000060| d3 1d f0 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 88 73 00 00 |........|.....s..|
|00000080| 2f 2a 20 0d 09 46 49 4c | 45 20 3a 20 43 46 6c 61 |/* ..FIL|E : CFla|
|00000090| 73 68 2e 63 0d 09 42 55 | 49 4c 54 3a 20 31 32 2f |sh.c..BU|ILT: 12/|
|000000a0| 31 39 2f 38 38 0d 09 46 | 4f 4e 54 20 3a 20 50 72 |19/88..F|ONT : Pr|
|000000b0| 6f 66 6f 6e 74 20 66 69 | 78 65 64 2d 63 65 6c 6c |ofont fi|xed-cell|
|000000c0| 20 39 20 70 6f 69 6e 74 | 20 28 61 76 61 69 6c 61 | 9 point| (availa|
|000000d0| 62 6c 65 20 6f 6e 20 47 | 45 6e 69 65 29 0d 09 46 |ble on G|Enie)..F|
|000000e0| 52 4f 4d 20 3a 20 47 45 | 6e 69 65 20 41 2e 43 4f |ROM : GE|nie A.CO|
|000000f0| 48 45 4e 36 0d 09 53 4f | 55 52 43 45 3a 20 4c 69 |HEN6..SO|URCE: Li|
|00000100| 67 68 74 53 70 65 65 64 | 20 27 63 27 20 76 33 2e |ghtSpeed| 'c' v3.|
|00000110| 30 0d 09 54 41 52 47 45 | 54 3a 20 4d 61 63 69 6e |0..TARGE|T: Macin|
|00000120| 74 6f 73 68 20 49 49 0d | 0d 09 4e 4f 54 45 20 3a |tosh II.|..NOTE :|
|00000130| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 22 48 65 | This is| the "He|
|00000140| 6c 6c 6f 20 57 6f 72 6c | 64 22 20 6f 66 20 48 79 |llo Worl|d" of Hy|
|00000150| 70 65 72 43 61 72 64 20 | 58 43 4d 44 27 73 0d 09 |perCard |XCMD's..|
|00000160| 09 0d 09 54 61 6b 65 6e | 20 66 72 6f 6d 20 41 70 |...Taken| from Ap|
|00000170| 70 65 6e 64 69 78 20 41 | 20 50 67 2e 20 32 32 33 |pendix A| Pg. 223|
|00000180| 20 6f 66 20 74 68 65 20 | 41 70 70 6c 65 20 48 79 | of the |Apple Hy|
|00000190| 70 65 72 63 61 72 64 20 | 53 63 72 69 70 74 20 4c |percard |Script L|
|000001a0| 61 6e 67 75 61 67 65 20 | 47 75 69 64 65 0d 09 28 |anguage |Guide..(|
|000001b0| 63 29 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |c)Apple |Computer|
|000001c0| 2c 20 49 6e 63 2e 0d 2a | 2f 0d 0d 23 69 6e 63 6c |, Inc..*|/..#incl|
|000001d0| 75 64 65 20 22 48 79 70 | 65 72 58 43 6d 64 2e 68 |ude "Hyp|erXCmd.h|
|000001e0| 22 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 0d 6d |"..pasca|l void.m|
|000001f0| 61 69 6e 28 70 61 72 61 | 6d 50 74 72 29 09 09 09 |ain(para|mPtr)...|
|00000200| 09 20 20 20 20 20 2f 2a | 20 4e 6f 74 65 20 76 61 |. /*| Note va|
|00000210| 72 69 61 74 69 6f 6e 3a | 20 4c 53 43 20 72 65 71 |riation:| LSC req|
|00000220| 75 69 72 65 73 20 22 6d | 61 69 6e 22 20 61 73 20 |uires "m|ain" as |
|00000230| 6f 70 70 6f 73 65 64 20 | 74 6f 20 22 43 46 6c 61 |opposed |to "CFla|
|00000240| 73 68 22 20 2a 2f 0d 58 | 43 6d 64 42 6c 6f 63 6b |sh" */.X|CmdBlock|
|00000250| 50 74 72 09 70 61 72 61 | 6d 50 74 72 3b 0d 7b 0d |Ptr.para|mPtr;.{.|
|00000260| 73 68 6f 72 74 20 66 6c | 61 73 68 43 6f 75 6e 74 |short fl|ashCount|
|00000270| 2c 20 61 67 61 69 6e 3b | 0d 47 72 61 66 50 74 72 |, again;|.GrafPtr|
|00000280| 09 70 6f 72 74 3b 0d 53 | 74 72 33 31 09 73 74 72 |.port;.S|tr31.str|
|00000290| 3b 0d 0d 09 5a 65 72 6f | 54 6f 50 61 73 28 70 61 |;...Zero|ToPas(pa|
|000002a0| 72 61 6d 50 74 72 2c 20 | 28 63 68 61 72 20 2a 29 |ramPtr, |(char *)|
|000002b0| 28 70 61 72 61 6d 50 74 | 72 2d 3e 70 61 72 61 6d |(paramPt|r->param|
|000002c0| 73 5b 30 5d 29 2c 28 53 | 74 72 69 6e 67 50 74 72 |s[0]),(S|tringPtr|
|000002d0| 29 20 26 73 74 72 29 3b | 2f 2a 20 67 65 74 20 66 |) &str);|/* get f|
|000002e0| 6c 61 73 68 20 63 6f 75 | 6e 74 20 20 20 20 20 2a |lash cou|nt *|
|000002f0| 2f 0d 09 66 6c 61 73 68 | 43 6f 75 6e 74 20 3d 20 |/..flash|Count = |
|00000300| 53 74 72 54 6f 4e 75 6d | 28 70 61 72 61 6d 50 74 |StrToNum|(paramPt|
|00000310| 72 2c 20 26 73 74 72 29 | 3b 20 20 20 20 20 20 20 |r, &str)|; |
|00000320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000330| 20 20 20 20 20 20 20 2f | 2a 20 63 6f 6e 76 65 72 | /|* conver|
|00000340| 74 20 74 6f 20 6e 75 6d | 20 20 20 20 20 20 2a 2f |t to num| */|
|00000350| 0d 09 69 66 28 70 61 72 | 61 6d 50 74 72 2d 3e 70 |..if(par|amPtr->p|
|00000360| 61 72 61 6d 43 6f 75 6e | 74 20 21 3d 31 29 20 20 |aramCoun|t !=1) |
|00000370| 66 6c 61 73 68 43 6f 75 | 6e 74 20 3d 20 33 3b 20 |flashCou|nt = 3; |
|00000380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000390| 20 20 20 20 20 20 2f 2a | 20 64 65 66 61 75 6c 74 | /*| default|
|000003a0| 20 69 66 20 6e 6f 20 70 | 61 72 61 6d 20 2a 2f 0d | if no p|aram */.|
|000003b0| 09 69 66 28 66 6c 61 73 | 68 43 6f 75 6e 74 20 3c |.if(flas|hCount <|
|000003c0| 20 31 29 20 20 66 6c 61 | 73 68 43 6f 75 6e 74 20 | 1) fla|shCount |
|000003d0| 3d 20 33 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |= 3; | |
|000003e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003f0| 20 20 20 20 20 2f 2a 20 | 6d 75 73 74 20 62 65 20 | /* |must be |
|00000400| 70 6f 73 69 74 69 76 65 | 20 20 20 20 2a 2f 0d 09 |positive| */..|
|00000410| 47 65 74 50 6f 72 74 28 | 26 70 6f 72 74 29 3b 0d |GetPort(|&port);.|
|00000420| 09 66 6f 72 28 61 67 61 | 69 6e 20 3d 20 31 3b 20 |.for(aga|in = 1; |
|00000430| 61 67 61 69 6e 20 3c 3d | 20 66 6c 61 73 68 43 6f |again <=| flashCo|
|00000440| 75 6e 74 3b 20 61 67 61 | 69 6e 2b 2b 29 20 7b 0d |unt; aga|in++) {.|
|00000450| 09 20 20 20 20 49 6e 76 | 65 72 74 52 65 63 74 28 |. Inv|ertRect(|
|00000460| 26 70 6f 72 74 2d 3e 70 | 6f 72 74 52 65 63 74 29 |&port->p|ortRect)|
|00000470| 3b 0d 09 20 20 20 20 49 | 6e 76 65 72 74 52 65 63 |;.. I|nvertRec|
|00000480| 74 28 26 70 6f 72 74 2d | 3e 70 6f 72 74 52 65 63 |t(&port-|>portRec|
|00000490| 74 29 3b 0d 09 7d 0d 7d | 00 00 00 00 00 00 00 00 |t);..}.}|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000510| 74 29 3b 0d 09 7d 0d 7d | 00 00 00 00 00 00 00 00 |t);..}.}|........|
|00000520| 00 00 00 00 00 00 00 00 | 30 cc 00 01 00 00 00 00 |........|0.......|
|00000530| 10 43 6f 70 79 20 6f 66 | 20 43 46 6c 61 73 68 2e |.Copy of| CFlash.|
|00000540| 63 6c 02 00 00 00 54 45 | 58 54 4b 41 48 4c 00 00 |cl....TE|XTKAHL..|
|00000550| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 10 00 60 |..TEXTKA|HL.....`|
|00000560| 00 00 0f 58 00 00 00 00 | 00 00 00 00 00 00 00 00 |...X....|........|
|00000570| 00 00 9f d2 c8 de 00 00 | 04 18 00 00 01 5c 15 17 |........|.....\..|
|00000580| 00 00 00 00 0a f0 00 00 | 10 00 00 00 00 00 01 5c |........|.......\|
|00000590| 00 00 08 00 9f cc 8e 9f | 9f cf 45 7d 00 00 00 00 |........|..E}....|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 35 42 00 02 00 00 | 00 00 00 00 00 00 35 44 |..5B....|......5D|
|000005c0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 4c 48 |........|......LH|
|000005d0| 56 41 08 63 75 73 74 6f | 6d 2e 63 69 6f 2e 63 00 |VA.custo|m.cio.c.|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 02 00 00 00 54 45 | 58 54 4b 41 48 4c 01 00 |......TE|XTKAHL..|
|00000600| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 07 50 |........|.......P|
|00000610| 72 6f 46 6f 6e 74 00 00 | 01 00 00 00 01 16 00 00 |roFont..|........|
|00000620| 00 16 00 00 00 46 00 06 | 5b 6c 02 36 00 00 00 1c |.....F..|[l.6....|
|00000630| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000640| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 06 59 e0 |........|......Y.|
|00000650| 03 eb ff ff 00 00 00 08 | 00 06 59 e8 00 00 00 00 |........|..Y.....|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+